﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SecurityContext
/// </summary>
public static class SecurityContext
{
	public static TWSUser GetUser()
	{
		object obj = HttpContext.Current.Session["twsUser"];
		if(obj==null)
			return null;
		else
			return (TWSUser)obj;
	}

	public static void SignOut()
	{
		HttpContext.Current.Session["twsUser"] = null;
		HttpContext.Current.Session.Clear();		
	}
}
